<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglibs.jsp"%>

<c:forEach items="${vipData}" var="vip">

	<li class="company">
		<div class="title">
			<img src="/images/vip/vip_${vip.key.vipStatus}.png" alt="白金推广">
			<h3>${vip.key.name}</h3>
		</div>
		<div class="content">
			<ul>
				<c:forEach items="${vip.value}" var="product" begin="0" end="2">
					<li class="space"></li>
					<li><a onclick="toWechatShop('${vip.key.username}','${openid}');"
						zzhref="javascript:void(0);"> <img src="${product.thumbImg}"
							alt="img"></a></li>
				</c:forEach>
				<c:choose>
					<c:when test="${fn:length(vip.value)==1}">
						<li class="space"></li>
						<li><a onclick="toWechatShop('${vip.key.username}','${openid}');"
							zzhref="javascript:void(0);"> <img src="/images/nopic.jpg"
								alt="img"></a></li>
						<li class="space"></li>
						<li><a onclick="toWechatShop('${vip.key.username}');"
							zzhref="javascript:void(0);"> <img src="/images/nopic.jpg"
								alt="img"></a></li>
					</c:when>
					<c:when test="${fn:length(vip.value)==2}">
						<li class="space"></li>
						<li><a onclick="toWechatShop('${vip.key.username}');"
							zzhref="javascript:void(0);"> <img src="/images/nopic.jpg"
								alt="img"></a></li>
								<li class="space"></li>
					</c:when>
					<c:otherwise></c:otherwise>
				</c:choose>
				
				<li class="space"></li>
				<li class="plist">
					<div class="phone">
						<a href="tel:${vip.key.purchaseContactMobilePhone}">
							<div class="contact"></div>
							<div class="number">${vip.key.purchaseContactMobilePhone}</div>
						</a>
					</div>
				</li>
			</ul>
		</div>
	</li>
</c:forEach>
<script>
	var pageNo = '${pageNo}';
</script>